#include "stdafx.h"
#include "coin.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif




void Coin::Draw()
{
	glLoadIdentity();            //resetta la vista

	//scelta del colore del gettone
	if      (m_bColor == YELLOW)   glColor3f(1.0f,1.0f,0.0f);   // colore giallo 
	else if (m_bColor == RED)      glColor3f(1.0f,0.0f,0.0f);   // colore rosso 
		
    glTranslatef(m_sPosX,m_sPosY,m_sPosZ);                // gettone faccia anteriore
    gluDisk(m_pQuadratic,0.0f,0.5f,32,32);			
}

void Coin::SetParams(Color_t Col,GLfloat x,GLfloat y,GLfloat z)
{
 m_sPosX = x,
 m_sPosY = y;
 m_sPosZ = z;
 m_bColor = Col;
}
  
